package com.yjf.ljr.dataclass;

import java.io.Serializable;
import java.util.List;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.yjf.ljr.parser.DataClass;

public class InvestProjectDataClass extends DataClass {

	@Expose
	// 总数
	@SerializedName("totalPage")
	public int totalPage;

	// @Expose
	// public String totalSize;
	@Expose
	// 投资列表
	public List<InvestProjectInfo> list;

	@Override
	public boolean copy(DataClass valueClass) {
		if (valueClass == null || !(valueClass instanceof InvestProjectDataClass)) {
			return false;
		}
		this.code = ((InvestProjectDataClass) valueClass).code;
		this.msg = ((InvestProjectDataClass) valueClass).msg;
		// this.totalSize = ((InvestProjectDataClass) valueClass).totalSize;
		this.totalPage = ((InvestProjectDataClass) valueClass).totalPage;
		this.list = ((InvestProjectDataClass) valueClass).list;
		return true;
	}

	public static class InvestProjectInfo implements Serializable {
		private static final long serialVersionUID = 1L;

		@Expose
		public String loanName;// 项目名称
		@Expose
		public String date;// 投资/还款时间
		@Expose
		public String benefitAmount;// 投资金额
		@Expose
		public String benifit;// 收益
		@Expose
		public String interestRate;// 年化利率
		@Expose
		public String status;// 状态（项目详情的内容）
		@Expose
		public String demandId;// 项目Id
		@Expose
		public String tradeId;// 查询Id
		
		@Expose
		public String isTransfer;// 是否债权转让 1=是；0=否
		@Expose
		public String transferStatus;// 债权转让状态

		/*
		 * @Expose // 项目名称 public String projectName;
		 * 
		 * @Expose // 投资金额 public String money;
		 * 
		 * @Expose // 投资时间 public String date;
		 * 
		 * @Expose // 收益 public String profit;
		 * 
		 * @Expose // 状态 public String state;
		 * 
		 * @Expose // 利率 public String rate;
		 */

         @Expose
		 public String tradeDetailId;//查询子Id
		 @Expose
		 public String timeLimit;//期限
		 @Expose
		 public String tradeFinishDate;//完成日期交易结束
		 @Expose
		 public String tradeExpireDate;//借款到期日期预计还款时间
		 @Expose
		 public String investFinishDate;//满标时间
		 @Expose
		 public String transferDate;
		 @Expose
		 public String tradeEffectiveDate;//借款成立日期起息日
		 @Expose
		 public String createDate;//投资时间
		 @Expose
		 public String deadline;//投资截止时间
		 @Expose
		 public String gainAmount;// 加息券收入
		 @Expose
		 public String salesPromotionPrompt;//平台利率
	}
}
